package cn.px.service.wechat.model.message.receive;


import cn.px.common.util.AdapterXmlCDATA;

import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * 接收消息的基类
 *
 * @author 品讯科技
 */
public class BaseReceiveMessage {

	// 开发者微信号
	@XmlJavaTypeAdapter(AdapterXmlCDATA.class)
	private String ToUserName;
	// 发送方帐号（一个OpenID）
	@XmlJavaTypeAdapter(AdapterXmlCDATA.class)
	private String FromUserName;
	// 消息创建时间 （整型）
	private long CreateTime;
	// 消息类型（text/image/location/link）
	@XmlJavaTypeAdapter(AdapterXmlCDATA.class)
	private String MsgType;

	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public long getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(long createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

}
